﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 住户保修信息表
    /// </summary>
    [Table("T_User_Guarantee")]
    public class UserGuarantee:BaseEntity
    {
        /// <summary>
        /// 报修名称
        /// </summary>
        [Required,Column(TypeName = "varchar"), StringLength(100)]
        public string RepairTitle { get; set; }
        /// <summary>
        /// 报修内容
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(255)]
        public string PepairContent { get; set; }
        /// <summary>
        /// 报修人
        /// </summary>
        [ForeignKey(nameof(household))]
        public int? UserId { get; set; }
        public Household household { get; set; }
        /// <summary>
        /// 维修状态
        /// </summary>
        public bool? RepairState { get; set; }

        public bool? RepairResult { get; set; }

        [Column(TypeName = "varchar"), StringLength(255)]
        public string RepairContent { get; set; }

        [Column(TypeName = "varchar"), StringLength(255)]
        public string Evaluate { get; set; }

        public DateTime? EstimatedTime { get; set; }

    }
}
